import axiosInstance from './axiosInstance'
import type { ProjectList, ProjectDetail } from '@/types/api'

export const getProjects = (params?: {
  category?: string
  tag?: string
  search?: string
}): Promise<ProjectList> => {
  return axiosInstance.get('/projects', { params })
}

export const getProjectDetail = (id: string): Promise<ProjectDetail> => {
  return axiosInstance.get(`/projects/${id}`)
}
